package main.model.critters.genetics;


public class Species {
	private Species parent;
	private Chromosome averageChromosome;
	private String name;
    private static NameFactory nameFactory = new NameFactory();
	
	public Species(){
	}
	
	public Species(Species parent, Chromosome average){
		this.setParent(parent);
		this.setAverageChromosome(average);
		this.name = nameFactory.newName();
	}

	public Species getParent() {return parent;}
	private void setParent(Species parent) {this.parent = parent;}
	
	public Chromosome getAverageChromosome(){return averageChromosome;}
	private void setAverageChromosome(Chromosome averageChromosome){this.averageChromosome = averageChromosome;}

	public String getName(){return name;}
	public void setName(String name){this.name = name;}
}
